package com.tuanbiao.ui.auth;

import android.content.Context;
import android.content.Intent;

import com.tuanbiao.base.BaseActivity;
import com.tuanbiao.databinding.ActivityAuthBinding;
import com.tuanbiao.utils.ClickUtil;
@Deprecated
public class AuthActivity extends BaseActivity<ActivityAuthBinding> {


    public static void start(Context context) {
        Intent starter = new Intent(context, AuthActivity.class);
        context.startActivity(starter);
    }

    public static Intent createIntent(Context context) {
        return new Intent(context, AuthActivity.class);
    }

    @Override
    protected ActivityAuthBinding getBindingView() {
        return ActivityAuthBinding.inflate(getLayoutInflater());
    }

    @Override
    protected void initView() {
        binding.ivToolbarBack.setOnClickListener(getBackListener());
        binding.sbOnline.setOnClickListener(view -> {
            if (ClickUtil.isFastClick()) {
                return;
            }
            AuthOnlineActivity.start(getActivity());
        });
        binding.sbAuthList.setOnClickListener(view -> {
            if (ClickUtil.isFastClick()) {
                return;
            }
            AuthListActivity.start(getActivity());
        });
        binding.sbLocal.setOnClickListener(view -> {
            if (ClickUtil.isFastClick()) {
                return;
            }
            AuthLocalActivity.start(getActivity());
        });
        binding.sbOffline.setOnClickListener(view -> {
            if (ClickUtil.isFastClick()) {
                return;
            }
            AuthOfflineActivity.start(getActivity());
        });
        binding.sbSequence.setOnClickListener(view -> {
            if (ClickUtil.isFastClick()) {
                return;
            }
            AuthSequenceActivity.start(getActivity());
        });
    }


}